/***********************************************************************************
@file   
@attention
***********************************************************************************/
#ifndef __PAGE_H
#define __PAGE_H
/* Private includes ----------------------------------------------------------*/
#include "main.h"

/* Private define ------------------------------------------------------------*/
#define  PAGE_DIS_MAIN              0
#define  PAGE_SET_SYS               1
#define  PAGE_DIS_CAL               2
#define  PAGE_PASSWORD_IN           3
#define  PAGE_SET_NAME              4
#define  PAGE_SET_SYS2              5
#define  PAGE_SET_PRECISION         6
#define  PAGE_SET_HOT               7
#define  PAGE_SET_NEGATIVE          9
#define  PAGE_SET_LOW               11
#define  PAGE_SET_HIGH              12
#define  PAGE_SET_ZERO              13
#define  PAGE_SET_ADDRESS           14
#define  PAGE_SET_ENERGY            15
#define  PAGE_SET_ENERGY_TYPE       16
#define  PAGE_SET_ZERO_MANUAL       19
#define  PAGE_SET_SPAN_MANUAL       20
#define  PAGE_SET_SPAN              21
#define  PAGE_SET_HOST              22
#define  PAGE_DIS_ADC               23

#define  PAGE_SET_MOBILITY          30
#define  PAGE_SET_ANGLE             31
#define  PAGE_SET_UNIT              51
#define  PAGE_SET_RANGE             52
#define  PAGE_SET_LORA              66
#define  PAGE_SET_SPEAK             67
#define  PAGE_SET_ALARM_TIMES       68
#define  PAGE_SET_POWER_INTERVAL    69    
#define  PAGE_SET_LORA_STA          70
#define  PAGE_SET_SPEAK_TIMES       71



#define  PAGE_DIS_LOW               101
#define  PAGE_DIS_HIGH              102
#define  PAGE_DIS_RANGE             103
#define  PAGE_DIS_KUADU             104
#define  PAGE_DIS_SUCCESS           105
#define  PAGE_DIS_FAIL              106
#define  PAGE_SET_PREHEAT           107
#define  PAGE_DIS_SHUT              108
#define  PAGE_DIS_CHARGE            109
#define  PAGE_DIS_6969              111
#define  PAGE_DIS_6868              112
#define  PAGE_DIS_ADDR              113
#define  PAGE_DIS_PRECISION         114
#define  PAGE_DIS_UNIT              115
#define  PAGE_DIS_ZERO              116

#define  PAGE_SET_CAL               211
#define  PAGE_DIS_WAIT_CAL          212

#define  PAGE_DIS_IDLE              255

#define menu_good           do  {dis_dialog(PAGE_DIS_SUCCESS,PAGE_DIS_MAIN,50);}while(0)
#define menu_fail           do  {dis_dialog(PAGE_DIS_FAIL,   PAGE_DIS_MAIN,50);}while(0)
/* Private typedef -----------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
extern uint8_t display_page;  //显示的页面
extern uint8_t return_page;   //返回页面
extern uint8_t return_time;   //返回时间
extern uint8_t row_flag;      //指示的行
extern uint8_t col_flag;      //指示的列
/* Private function ----------------------------------------------------------*/
extern void page_dis_update(void);
extern void page_goto(uint8_t page);
extern void dis_dialog(uint8_t dis_page,uint8_t ret_page,uint8_t dis_time);
#endif




